Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to Create the Strategy for Mirror -UST #31

Closed
wants to merge 6 commits into from

Conversation

jomarip
Copy link
Contributor

@jomarip jomarip commented Feb 5, 2021

This passed my compile tests, but I wasn't able to test the interface.

Copy link

@purperen purperen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are swapping MIR for UST, just below you are swapping half of UST for MIR.
So it would make more sense to here just swap half of MIR for UST and skip the second swap.
Save some gas :)

);
_swapSushiswapWithPath(mis_usdt_path, _mis.sub(_keepMIS));
_swapSushiswapWithPath(mir_ust_path, _mir.sub(_keepMIR));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you are swapping MIR for UST, just below you are swapping half of UST for MIR.
So it would make more sense to here just swap half of MIR for UST and skip the second swap.
Save some gas :)

@eip1599
Copy link
Contributor

eip1599 commented Feb 18, 2021

Thanks @jomarip for writing this.
I have added a couple of commits for testing and a bit of optimization. #34

@eip1599 eip1599 closed this Feb 18, 2021
@jomarip jomarip deleted the patch-1 branch February 18, 2021 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants